﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master"
    AutoEventWireup="true" CodeBehind="CommentList.aspx.cs" Inherits="ECommerce.Web.ECAdmin.Product.CommentList" %>
<%@ Register src="../../Common/Controls/Selecter.ascx" tagname="Selecter" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../../Common/Style/Skin1/Pager.css" rel="stylesheet" type="text/css" />

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="toolbar">
        <ul>
            <li><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/DELETE.gif);">
                &nbsp;</b><asp:Literal ID="Literal4" runat="server" Text="删除"></asp:Literal></span></a></li>
             <li><a id="lnkDisplay" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/book_open.gif);">
                &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="显示"></asp:Literal></span></a></li>
            <li><a id="lnkHide" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/close.jpg);">
                &nbsp;</b><asp:Literal ID="Literal2" runat="server" Text="隐藏"></asp:Literal></span></a></li>

        </ul>
    </div>
    <div id="head">
        <div class="left">
            <span style="font-weight: bold">
                <asp:Literal ID="litTitle" runat="server"></asp:Literal></span>
        </div>        
    </div>
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th>
                    用户名
                </th>
                <th>
                    价格
                </th>
                <th>
                    口味
                </th>
                <th>
                    造型
                </th>
                <th>
                    评论
                </th>
                <th>
                    评分
                </th>   
                <th>
                    发表时间
                </th> 
                <th>
                    是否显示
                </th>          
              
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>
                        <td>
                            <%#Eval("MemberLoginName") %>&nbsp;
                        </td>
                        <td><%#Eval("Price")%>&nbsp;</td>
                         <td><%#Eval("Taste")%>&nbsp;</td>
                          <td><%#Eval("Sculpt")%>&nbsp;</td>
                        <td>
                            <%#Eval("Content")%>&nbsp;
                        </td>
                        <td>
                            <%#Eval("Score")%>&nbsp;
                        </td>   
                        <td>
                            <%#Eval("InputTime","{0:d}") %>
                        </td>  
                        <td>
                            <%#((bool)Eval("IsDisplay") == true)?"是":"否" %>
                        </td>                 
                        
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="7" class="empty">
                            没有评论
                        </td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
    <div id="foot">
        <uc1:selecter id="Selecter1" runat="server" />
        <asp:Literal ID="litPager" runat="server"></asp:Literal></div>
    <div style="clear: both;" />
    <div id="toolbar_bottom">
        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" CausesValidation="False"
            OnClientClick="return confirm('确认删除?')" Style="letter-spacing: normal;" />
        <asp:Button ID="btnDisplay" runat="server" Text="显示" 
            onclick="btnDisplay_Click" />
        <asp:Button ID="btnHide" runat="server" Text="隐藏" onclick="btnHide_Click" />
    </div>
</asp:Content>
